# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-tweaks
pkgver=40.0
pkgrel=3
pkgdesc="GNOME3 tool to customize advanced options"
url="https://wiki.gnome.org/Apps/Tweaks"
# s390x and riscv64 blocked by rust -> libhandy
arch="noarch !s390x !riscv64"
license="GPL-3.0-or-later CC0-1.0"
depends="
	dconf
	gnome-settings-daemon
	gnome-shell-schemas
	gtk+3.0
	libhandy1
	libnotify
	mutter-schemas
	py3-gobject3
	"
makedepends="meson gettext-dev"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-tweaks/${pkgver%.*}/gnome-tweaks-$pkgver.tar.xz
	meson-fix-invalid-argument.patch
	"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c3467f40af6bb79c2b10cb429e93aa29261066c2a5fd744bf2801c4e596cc270d45302ebfa942ee0c40067849c12e1ccd404c40e7f594bcff4c44cfe3f90bb97  gnome-tweaks-40.0.tar.xz
9c263fa21a900103b3ef1b8e6fa2108c0a004101c864eab4a0349e43fdc9127a35de1997a83746ea47f5ece223dda53c6a3032c9a50d0a739bddd6a622a6281a  meson-fix-invalid-argument.patch
"
